<div class="page" data-ng-controller="editAuditCtrl">

    <section class="panel panel-default table-dynamic">
        <div class="panel-heading">
            <strong>
                <span class="glyphicon glyphicon-th"></span>编辑内容</strong>
        </div>
        <div class="panel-body">
            <div class="col-md-11 col-md-1">
                <form class="form-horizontal form-validation" role="form">

                    <div class="form-group">
                        <label for="title" class="col-sm-2 control-label">标题</label>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" id="title" placeholder="请填写标题"
                                   value="{{audit.name}}" data-ng-model="audit.name"/>
                        </div>
                    </div>


                    <div class="form-group ">
                        <label for="type" class="col-sm-2 control-label pull-left">类型公示</label>
                        <div class="col-sm-6">
                            <select id="type" class="form-control" ng-model="audit.type">
                                <option value="财务报告">财务报告</option>
                                <option value="审计报告">审计报告</option>
                                <option value="年检报告">年检报告</option>
                                <option value="年度总结">年度总结</option>
                                <option value="其他"> 其他 </option>
                            </select>
                        </div>
                    </div>

                    <div class="form-group" >
                        <label for="title" class="col-sm-2 control-label">上传文件</label>
                        <div class="col-sm-10">
                            <input type="file" class="form-control"
                                   bc-image-upload="{ model : 'audit.fileUrl', progressPercent: 'progressPercent',
                                callbackFunc: 'imgUploadCallback' }" />
                        </div>
                        <div class="col-sm-offset-2 col-sm-10" ng-if="progressPercent > 0" style="margin-top:15px;">
                            <div class="progress-bar progress-bar-info progress-bar-striped active" style="width: 0!important;">
                                <div class="progress-value">{{progressPercent}}%</div>
                            </div>
                        </div>
                    </div>

                    <div class="form-group">
                        <label  class="col-sm-2 control-label"><span class="color-danger">*</span>文件地址</label>
                        <div class="col-sm-10">
                            <input type="text" class="form-control"
                                   value="audit.fileUrl" data-ng-model="audit.fileUrl" placeholder="可以选择上传本地文件或者直接引用网络视频"/>
                        </div>
                    </div>
                    
                    <div class="form-group">
                        <div class="col-sm-offset-2 col-sm-10">
                            <button type="submit" class="btn btn-success btn-w-md pull-right"
                                    data-ng-click="saveAudit()">保存
                            </button>
                        </div>
                    </div>
                </form>
            </div>

        </div>
    </section>


</div>